package chapter_Thread_MyThread;

public class MyThread extends Thread{
	
	public void run() {
		for(int i = 0;i<20;i++) {
			System.out.println("你好，来自线程"+Thread.currentThread().getName()+":"+i);
		}
	}
	
	public static void main(String[] args) {
		MyThread thread1 = new MyThread();
		MyThread thread2 = new MyThread();
		thread1.start();
		thread2.start();
	}

}
